package cn.younext;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainWindowActivity extends Activity {

	private CommunicationThread communicationThread;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		initGUI();
	}

	private void initGUI() {
		Button connectButton = (Button) findViewById(R.id.ConnectButton);
		Button sendButton = (Button) findViewById(R.id.SendButton);

		connectButton.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
				communicationThread = new CommunicationThread("192.168.1.110",
						5050);
				communicationThread.start();
			}
		});

		sendButton.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v) {
			}
		});

	}
}